package com.emall.cart.feign;

import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author YuanShijia
 * @ClassName ProductFeignService.java
 * @Description
 * @createTime 2020年06月03日 17:02:00
 */
@FeignClient("emall-product")
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
        // @RequiresPermissions("product:skuinfo:info")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);
}